package top.xiaoshuaila.moments.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.xiaoshuaila.moments.mapper.FindMapper;
import top.xiaoshuaila.moments.pojo.Dynamic;

import java.util.List;

@Service
public class FindServiceImpl implements FindService {
    @Autowired
    private FindMapper findMapper;

    @Override
    public List<Dynamic> getfindfynamic(long id,int page) {
        return findMapper.getfindfynamic(id,page*5,5);
    }
    @Override
    public List<Dynamic> getsquarefynamic(long id,int page) {
        return findMapper.getsquarefynamic(id,page*5,5);
    }

    @Override
    public int gettotal(long id) {
        return findMapper.gettotal(id);
    }

    @Override
    public int gettotalsquare(long id) {
        return findMapper.gettotalsquare(id);
    }
}
